Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement -O and -G tests #1080

Merged
merged 2 commits into from
Jul 13, 2024
Merged

Implement -O and -G tests #1080

merged 2 commits into from
Jul 13, 2024

Conversation

theclapp
Copy link
Collaborator

Implement -O (syntax.TsUsrOwn, "file exists and is owned by the effective user id") and -G (syntax.TsGrpOwn, "file exists and is owned by the effective group id") tests, for non-Windows only.

Under Windows, still panics, as before.

-O and -G are hard/not applicable for Windows, since it doesn't really have the concept of "file owners", only ACLs, and it's not clear how to translate one to the other.

Implement -O (syntax.TsUsrOwn, "file exists and is owned by the
effective user id") and -G (syntax.TsGrpOwn, "file exists and is owned
by the effective group id") tests, for non-Windows only.

Under Windows, still panics, as before.

-O and -G are hard/not applicable for Windows, since it doesn't really
have the concept of "file owners", only ACLs, and it's not clear how to
translate one to the other.
@theclapp
Copy link
Collaborator Author

Oops, this won't even build under Windows. My bad. I'll get back to you.

interp/test.go Outdated Show resolved Hide resolved
Move the -O & -G code into os_notunix.go and os_unix.go.

The Windows code still just panics.
Copy link
Owner

@mvdan mvdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@mvdan mvdan merged commit 3221159 into mvdan:master Jul 13, 2024
8 checks passed
This was referenced Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants